#ifndef REGISTWIDGET_H
#define REGISTWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QCheckBox>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QUdpSocket>
#include <QCryptographicHash>
#include <QMessageBox>

namespace Ui {
class registwidget;
}

class registwidget : public QWidget
{
    Q_OBJECT

public:
    explicit registwidget(QWidget *parent = 0);
    ~registwidget();
private slots:
    void on_clicket_regisbtn();
    void on_readyread_udp();
private:
    Ui::registwidget *ui;
    QLineEdit *nameLineEdit;//注册用户
    QLabel *nameLabel;
    QLineEdit *passwordLineEdit;//注册密码
    QLabel *passwordLabel;
    QPushButton *registBtn;//注册按钮

    //布局定义
    QHBoxLayout *nameLayout;
    QHBoxLayout *passwordLayout;
    QHBoxLayout *registBtnLayout;
    QVBoxLayout *mainLayout;

    QUdpSocket *sd;


};

#endif // REGISTWIDGET_H
